-- GENERATED SPELL FOR [Aspect of Corruption] --


function spell0_14519(pUnit, Event) --@Corruption,n/a--
pUnit:FullCastSpellOnTarget(18376,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14519', 26000, 1)
end

function spell1_14519(pUnit, Event) --@Shadow Word: Pain,n/a--
pUnit:FullCastSpellOnTarget(23268,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14519', 18000, 1)
end

function Sorts_14519(pUnit, Event)
local choix_sorts_14519 = math.random(0, 1)
if choix_sorts_14519 == 0 then
pUnit:RegisterEvent('spell0_14519', 1, 1)
end
if choix_sorts_14519 == 1 then
pUnit:RegisterEvent('spell1_14519', 1, 1)
end
end

function mob14519_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14519', math.random(1500, 3000), 1)
end

function mob14519_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14519_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14519_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14519, 1, 'mob14519_Action')
RegisterUnitEvent(14519, 2, 'mob14519_Leave')
RegisterUnitEvent(14519, 3, 'mob14519_Kill')
RegisterUnitEvent(14519, 4, 'mob14519_Die')
